package com.baizhi;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication
@MapperScan("com.baizhi.dao")
//SpringBootServletInitializer:不再使用内嵌容器使用,使用外部web容器启动
public class SpringbootEmpApplication extends SpringBootServletInitializer {


    public static void main(String[] args) {
        System.out.println("111111");
        System.out.println("222222");
        System.out.println("444444");
        System.out.println("5555555");
        SpringApplication.run(SpringbootEmpApplication.class, args);
    }


    //配置入口类
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(SpringbootEmpApplication.class);
    }
}
